millenniumR4AccountSearch
Get a list of accounts
<p>Retrieves a list of accounts that meet supplied query parameters.</p> <p> <b>Note:</b> <ul> <li>The <code>account-balance</code> extension is only returned on <code>statement</code>, <code>guarantor-balance</code>, and <code>insurance-benefit</code> types.</li> <li><code>Account.subject</code> is only returned on <code>statement</code> and <code>financial-account</code> types.</li> <li>You may search with one of the following parameters:</li> <ul> <li> <code>_id</code> </li> <li> <code>-encounter</code> and <code>type=guarantor-balance</code> </li> <li> <code>patient</code>, <code>identifier</code>, and <code>type=statement</code> </li> <li> <code>-guarantor</code> and <code>type=financial-account</code> </li> </ul> </ul></p> <p><b>Authorization Types</b></p> <p>This operation supports the following authorization types: <ul> <li><a href="https://docs.oracle.com/en/industries/health/millennium-platform-apis/millennium-authorization-framework/#requesting-authorization-on-behalf-of-a-user">Provider</a></li> <li><a href="https://docs.oracle.com/en/industries/health/millennium-platform-apis/millennium-authorization-framework/#requesting-authorization-on-behalf-of-a-system">System</a></li> </ul> </p>
/Account/
Usage and SDK Samples
curl -X GET "https://localhost/Account/?_id=&identifier=&type=&patient=&-guarantor=&-encounter=&_count="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;
import java.io.File;
import java.util.*;
public class AccountApiExample {
public static void main(String[] args) {
AccountApi apiInstance = new AccountApi();
String authorization = authorization_example; // String | Contains the credentials to authenticate a consumer to the service. This should be the OAuth2 Bearer token.
array[String] id = ; // array[String] | The logical resource ID.
Example: _id=12345
String identifier = identifier_example; // String | The alias of the account. The system must be https://fhir.cerner.com/<EHR_source_id>/statement-number.
Example: identifier=https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/statement-number|500000078
String type = type_example; // String | The specific type of account.
Example: type=financial-account
String patient = patient_example; // String | The entity that caused the expenses.
Example: patient=Patient/12345
String guarantor = guarantor_example; // String | The parties responsible for balancing the account. This parmeter should contain a reference to a related person.
Example: -guarantor=6330015-6330017
String encounter = encounter_example; // String | The logical resource ID of the clinical encounter.
Example: -encounter=98028029
Integer count = 56; // Integer | The maximum number of results to return.
Example: _count=15
try {
apiInstance.millenniumR4AccountSearch(authorization, id, identifier, type, patient, guarantor, encounter, count);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#millenniumR4AccountSearch");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AccountApi;
public class AccountApiExample {
public static void main(String[] args) {
AccountApi apiInstance = new AccountApi();
String authorization = authorization_example; // String | Contains the credentials to authenticate a consumer to the service. This should be the OAuth2 Bearer token.
array[String] id = ; // array[String] | The logical resource ID.
Example: _id=12345
String identifier = identifier_example; // String | The alias of the account. The system must be https://fhir.cerner.com/<EHR_source_id>/statement-number.
Example: identifier=https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/statement-number|500000078
String type = type_example; // String | The specific type of account.
Example: type=financial-account
String patient = patient_example; // String | The entity that caused the expenses.
Example: patient=Patient/12345
String guarantor = guarantor_example; // String | The parties responsible for balancing the account. This parmeter should contain a reference to a related person.
Example: -guarantor=6330015-6330017
String encounter = encounter_example; // String | The logical resource ID of the clinical encounter.
Example: -encounter=98028029
Integer count = 56; // Integer | The maximum number of results to return.
Example: _count=15
try {
apiInstance.millenniumR4AccountSearch(authorization, id, identifier, type, patient, guarantor, encounter, count);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#millenniumR4AccountSearch");
e.printStackTrace();
}
}
}
String *authorization = authorization_example; // Contains the credentials to authenticate a consumer to the service. This should be the OAuth2 Bearer token.
array[String] *id = ; // The logical resource ID.
Example: _id=12345
(optional)
String *identifier = identifier_example; // The alias of the account. The system must be https://fhir.cerner.com/<EHR_source_id>/statement-number.
Example: identifier=https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/statement-number|500000078
(optional)
String *type = type_example; // The specific type of account.
Example: type=financial-account
(optional)
String *patient = patient_example; // The entity that caused the expenses.
Example: patient=Patient/12345
(optional)
String *guarantor = guarantor_example; // The parties responsible for balancing the account. This parmeter should contain a reference to a related person.
Example: -guarantor=6330015-6330017
(optional)
String *encounter = encounter_example; // The logical resource ID of the clinical encounter.
Example: -encounter=98028029
(optional)
Integer *count = 56; // The maximum number of results to return.
Example: _count=15
(optional) (default to 10)
AccountApi *apiInstance = [[AccountApi alloc] init];
// Get a list of accounts
[apiInstance millenniumR4AccountSearchWith:authorization
id:id
identifier:identifier
type:type
patient:patient
guarantor:guarantor
encounter:encounter
count:count
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var FhirR4ApisForOracleHealthMillenniumPlatform = require('fhir_r4_apis_for_oracle_health_millennium_platform');
var api = new FhirR4ApisForOracleHealthMillenniumPlatform.AccountApi()
var authorization = authorization_example; // {String} Contains the credentials to authenticate a consumer to the service. This should be the OAuth2 Bearer token.
var opts = {
'id': , // {array[String]} The logical resource ID.
Example: _id=12345
'identifier': identifier_example, // {String} The alias of the account. The system must be https://fhir.cerner.com/<EHR_source_id>/statement-number.
Example: identifier=https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/statement-number|500000078
'type': type_example, // {String} The specific type of account.
Example: type=financial-account
'patient': patient_example, // {String} The entity that caused the expenses.
Example: patient=Patient/12345
'guarantor': guarantor_example, // {String} The parties responsible for balancing the account. This parmeter should contain a reference to a related person.
Example: -guarantor=6330015-6330017
'encounter': encounter_example, // {String} The logical resource ID of the clinical encounter.
Example: -encounter=98028029
'count': 56 // {Integer} The maximum number of results to return.
Example: _count=15
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.millenniumR4AccountSearch(authorization, , opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class millenniumR4AccountSearchExample
{
public void main()
{
var apiInstance = new AccountApi();
var authorization = authorization_example; // String | Contains the credentials to authenticate a consumer to the service. This should be the OAuth2 Bearer token.
var id = new array[String](); // array[String] | The logical resource ID.
Example: _id=12345
(optional)
var identifier = identifier_example; // String | The alias of the account. The system must be https://fhir.cerner.com/<EHR_source_id>/statement-number.
Example: identifier=https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/statement-number|500000078
(optional)
var type = type_example; // String | The specific type of account.
Example: type=financial-account
(optional)
var patient = patient_example; // String | The entity that caused the expenses.
Example: patient=Patient/12345
(optional)
var guarantor = guarantor_example; // String | The parties responsible for balancing the account. This parmeter should contain a reference to a related person.
Example: -guarantor=6330015-6330017
(optional)
var encounter = encounter_example; // String | The logical resource ID of the clinical encounter.
Example: -encounter=98028029
(optional)
var count = 56; // Integer | The maximum number of results to return.
Example: _count=15
(optional) (default to 10)
try
{
// Get a list of accounts
apiInstance.millenniumR4AccountSearch(authorization, id, identifier, type, patient, guarantor, encounter, count);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccountApi.millenniumR4AccountSearch: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AccountApi();
$authorization = authorization_example; // String | Contains the credentials to authenticate a consumer to the service. This should be the OAuth2 Bearer token.
$id = ; // array[String] | The logical resource ID.
Example: _id=12345
$identifier = identifier_example; // String | The alias of the account. The system must be https://fhir.cerner.com/<EHR_source_id>/statement-number.
Example: identifier=https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/statement-number|500000078
$type = type_example; // String | The specific type of account.
Example: type=financial-account
$patient = patient_example; // String | The entity that caused the expenses.
Example: patient=Patient/12345
$guarantor = guarantor_example; // String | The parties responsible for balancing the account. This parmeter should contain a reference to a related person.
Example: -guarantor=6330015-6330017
$encounter = encounter_example; // String | The logical resource ID of the clinical encounter.
Example: -encounter=98028029
$count = 56; // Integer | The maximum number of results to return.
Example: _count=15
try {
$api_instance->millenniumR4AccountSearch($authorization, $id, $identifier, $type, $patient, $guarantor, $encounter, $count);
} catch (Exception $e) {
echo 'Exception when calling AccountApi->millenniumR4AccountSearch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountApi;
my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $authorization = authorization_example; # String | Contains the credentials to authenticate a consumer to the service. This should be the OAuth2 Bearer token.
my $id = []; # array[String] | The logical resource ID.
Example: _id=12345
my $identifier = identifier_example; # String | The alias of the account. The system must be https://fhir.cerner.com/<EHR_source_id>/statement-number.
Example: identifier=https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/statement-number|500000078
my $type = type_example; # String | The specific type of account.
Example: type=financial-account
my $patient = patient_example; # String | The entity that caused the expenses.
Example: patient=Patient/12345
my $guarantor = guarantor_example; # String | The parties responsible for balancing the account. This parmeter should contain a reference to a related person.
Example: -guarantor=6330015-6330017
my $encounter = encounter_example; # String | The logical resource ID of the clinical encounter.
Example: -encounter=98028029
my $count = 56; # Integer | The maximum number of results to return.
Example: _count=15
eval {
$api_instance->millenniumR4AccountSearch(authorization => $authorization, id => $id, identifier => $identifier, type => $type, patient => $patient, guarantor => $guarantor, encounter => $encounter, count => $count);
};
if ($@) {
warn "Exception when calling AccountApi->millenniumR4AccountSearch: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AccountApi()
authorization = authorization_example # String | Contains the credentials to authenticate a consumer to the service. This should be the OAuth2 Bearer token.
id = # array[String] | The logical resource ID.
Example: _id=12345
(optional)
identifier = identifier_example # String | The alias of the account. The system must be https://fhir.cerner.com/<EHR_source_id>/statement-number.
Example: identifier=https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/statement-number|500000078
(optional)
type = type_example # String | The specific type of account.
Example: type=financial-account
(optional)
patient = patient_example # String | The entity that caused the expenses.
Example: patient=Patient/12345
(optional)
guarantor = guarantor_example # String | The parties responsible for balancing the account. This parmeter should contain a reference to a related person.
Example: -guarantor=6330015-6330017
(optional)
encounter = encounter_example # String | The logical resource ID of the clinical encounter.
Example: -encounter=98028029
(optional)
count = 56 # Integer | The maximum number of results to return.
Example: _count=15
(optional) (default to 10)
try:
# Get a list of accounts
api_instance.millennium_r4_account_search(authorization, id=id, identifier=identifier, type=type, patient=patient, guarantor=guarantor, encounter=encounter, count=count)
except ApiException as e:
print("Exception when calling AccountApi->millenniumR4AccountSearch: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| Authorization* |
| Name | Description |
|---|---|
| _id |
array[String]
<p>The logical resource ID.</p>
<p>Example: <code>_id=12345</code></p>
|
| identifier |
String
<p>The alias of the account. The system must be <code>https://fhir.cerner.com/<EHR_source_id>/statement-number</code>.</p>
<p>Example: <code>identifier=https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/statement-number|500000078</code></p>
|
| type |
String
<p>The specific type of account.</p>
<p>Example: <code>type=financial-account</code></p>
|
| patient |
String
<p>The entity that caused the expenses.</p>
<p>Example: <code>patient=Patient/12345</code></p>
|
| -guarantor |
String
<p>The parties responsible for balancing the account. This parmeter should contain a reference to a related person.</p>
<p>Example: <code>-guarantor=6330015-6330017</code></p>
|
| -encounter |
String
<p>The logical resource ID of the clinical encounter.</p>
<p>Example: <code>-encounter=98028029</code></p>
|
| _count |
Integer
<p>The maximum number of results to return.</p>
<p>Example: <code>_count=15</code></p>
|
Responses
Status: 200 - <p><b>OK</b></p>
| Name | Type | Format | Description |
|---|---|---|---|
| opc-request-id | String | <p>Oracle troubleshooting identifier.</p> | |
| X-Request-Id | String | <p>Oracle troubleshooting identifier.</p> |
Status: default - <p>An OperationOutcome describing any error that occurred.</p>
| Name | Type | Format | Description |
|---|---|---|---|
| opc-request-id | String | <p>Oracle troubleshooting identifier.</p> | |
| X-Request-Id | String | <p>Oracle troubleshooting identifier.</p> |